From 12f5438d72af20b0b7b2c690bee79ebfb2d57419 Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Mon, 6 Jun 2005 15:06:50 +0000 Subject: [PATCH] bitkeeper revision 1.1662.1.6 (42a4668acAGbhHtR6a2E9nRSv0bjrA) XendDomainInfo.py: Add setName. Signed-off-by: Mike Wray Signed-off-by: Christian Limpach --- tools/python/xen/xend/XendDomainInfo.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 23e519abc3..13c0aa0ef8 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -219,7 +219,8 @@ class XendDomainInfo: if config: vm.construct(config) else: - vm.name = sxp.child_value(savedinfo, 'name', "Domain-%d" % info['dom']) + vm.setName(sxp.child_value(savedinfo, 'name', + "Domain-%d" % info['dom'])) vm.recreate = False vm.savedinfo = None @@ -292,6 +293,10 @@ class XendDomainInfo: def getDomain(self): return self.id + def setName(self, name): + self.name = name + #self.db.name = self.name + def getName(self): return self.name @@ -477,7 +482,7 @@ class XendDomainInfo: self.config = config try: # Initial domain create. - self.name = sxp.child_value(config, 'name') + self.setName(sxp.child_value(config, 'name')) self.check_name(self.name) self.configure_cpus(config) self.find_image_handler() -- 2.30.2